//
//  GAKKIBaseView.h
//  GANGAIKit
//
//  Created by fh on 2019/11/5.
//  Copyright © 2019 cashchina. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import <Masonry.h>
#import <Masonry/Masonry.h>
#import "GAKKIConfig.h"
@class GAKKIBaseView;

NS_ASSUME_NONNULL_BEGIN

typedef GAKKIBaseView * _Nonnull (^GAKKIViewFrame) (CGRect frame);
typedef GAKKIBaseView * _Nonnull (^GAKKIViewBackgroundColor) (UIColor * __nullable backgroundColor);

/// view基类
@interface GAKKIBaseView : UIView

/// 配置子视图
- (void)setupView;

/// 工厂类方法
/// @param block 实例对象
+ (GAKKIBaseView *)gakki_makeView:(void(^)(GAKKIBaseView * view))block;
/// 尺寸
@property (nonatomic, readonly, copy) GAKKIViewFrame gakki_frame;
/// 背景颜色
@property (nonatomic, readonly, copy) GAKKIViewBackgroundColor gakki_backgroundColor;

@end

NS_ASSUME_NONNULL_END
